package com.ym.medical.domain.entity;

import com.ym.common.constant.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 用户账户表对象 account
 *
 * @author ym
 * @date 2020-08-18
 */
@ApiModel("用户账户表-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "account")
public class AccountEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户主键
	 */
	@ApiModelProperty("用户主键")
	private Long userId;

	/**
	 * 账户余额
	 */
	@ApiModelProperty("账户余额")
	private BigDecimal accBalance;

	/**
	 * 冻结余额
	 */
	@ApiModelProperty("冻结余额")
	private BigDecimal freezeBalance;

	/**
	 * 健康币余额
	 */
	@ApiModelProperty("健康币余额")
	private BigDecimal coinBalance;

}
